﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using System.Data;

namespace logic
{
    public class buyerWeeklyPrice
    {
        public static DataSet listWithAvgSellerPrice(int bpwid, string where, int pageIndex, int pageSize)
        {
            return BuyerWeeklyPrice.listWithAvgSellerPrice(bpwid, where, pageIndex, pageSize);
        }

        /// <summary>
        /// 添加/编辑(1表示添加,2表示编辑)
        /// </summary>
        /// <param name="dt"></param>
        /// <param name="bpwdid"></param>
        /// <param name="action">动作标识</param>
        /// <returns></returns>
        public static bool bulkInsert(DataTable dt, int bpwdid, int action)
        {
            return BuyerWeeklyPrice.bulkInsert(dt, bpwdid, action);
        }

        public static DataTable listWithCompanyWeek(int bpwdid)
        {
            return BuyerWeeklyPrice.listWithCompanyWeek(bpwdid);
        }

        public static DataTable buyerWeeklyProductList(int companyId, int week)
        {
            return BuyerWeeklyPrice.buyerWeeklyProductList(companyId, week);
        }
    }
}
